home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Technotools
/
Technotools (Chestnut CD-ROM)(1993).ISO
/
lang_c
/
cswitc
/
test5.c
< prev
next >
Wrap
C/C++ Source or Header
|
1990-06-27
|
393b
|
23 lines
#include "stdio.h"
FILE *fp, *fp2;
char buf[200];
char *passmsg="test5 pass complete";
main()
{
fp=fopen("test5.c","r");
if(fp==NULL)
{
send_md_msg(1,"Error opening file.",30);
goto leave;
}
while(fgets(buf,80,fp)!=NULL);
fclose(fp);
leave:
send_md_msg(1,passmsg, strlen(passmsg)+1);
}